import router from '/admin/router/index'

export function delDetailRouter(routeName, path) {
  let routeList = JSON.parse(sessionStorage.getItem('routeList'))
  routeList = routeList.filter(item => item.title != routeName)
  sessionStorage.setItem('routeList', JSON.stringify(routeList))
  router.push(path)
}